﻿/// <reference path="../RegExp/Escape.js" />

location._GetParam = function _GetParam(str, name)
{
	var rgx = new RegExp("(?:^|&)" + RegExp.Escape(name) + "=([^&]*)");
	var m = rgx.exec(str);
	if (m == null)
		return null;
	return m[1];
}